Don't try to copy the .mo files if they haven't been built.
authorEwan Mellor <ewan@xensource.com>
Sat, 23 Dec 2006 21:32:05 +0000 (21:32 +0000)
committerEwan Mellor <ewan@xensource.com>
Sat, 23 Dec 2006 21:32:05 +0000 (21:32 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/Makefile

index 9e957fedf324918c7e5aba6bba4e92392734e47a..1c3a6c4ffcd0532580fda56aea36abba6711b206 100644 (file)
@@ -26,8 +26,10 @@ install: install-messages
 endif
 
 install-messages: all
-       mkdir -p "$(DESTDIR)/usr/share/locale"
-       cp -R build/messages/* "$(DESTDIR)/usr/share/locale/"
+       if which msgfmt >/dev/null ; then \
+         mkdir -p "$(DESTDIR)/usr/share/locale"; \
+         cp -R build/messages/* "$(DESTDIR)/usr/share/locale/"; \
+       fi
 
 .PHONY: test
 test: